/* layout.css */

/* 头部 */
.topbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background-color: var(--primary-color);
    color: white;
    padding: 1rem 2rem;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
}

.logo {
    font-size: 1.4rem;
    font-weight: bold;
}

.navigation {
    display: flex;
    gap: 1.5rem;
}

.nav-link {
    text-decoration: none;
    color: white;
    padding: 0.5rem 0.8rem;
    border-radius: var(--border-radius);
    transition: background-color var(--transition-speed);
}

.nav-link:hover,
.nav-link.active {
    background-color: rgba(255, 255, 255, 0.2);
}

.actions {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.icon-button {
    background: none;
    border: none;
    color: white;
    font-size: 1.2rem;
    cursor: pointer;
    padding: 0.5rem;
    border-radius: 50%;
    transition: background-color var(--transition-speed), transform var(--transition-speed);
}

.icon-button:hover {
    background-color: rgba(255, 255, 255, 0.2);
    transform: scale(1.1);
}

.main-content {
    max-width: 1200px;
    margin: 2rem auto;
    padding: 0 1rem;
}

#app {
    background-color: var(--card-bg);
    padding: 2rem;
    border-radius: var(--border-radius);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

@media (max-width: 768px) {
    .navigation {
        flex-direction: column;
        width: 100%;
        align-items: flex-start;
        margin-bottom: 1rem;
    }

    .nav-link {
        width: 100%;
        text-align: left;
    }

    .actions {
        flex-wrap: wrap;
    }
}
